<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/18
 * Time: 19:52
 */
header('Access-Control-Allow-Origin:http://localhost');
header('Access-Control-Allow-Origin:*');
$arr = array('name'=>'老王','sex'=>'man','age'=>22);
sleep(5);
echo json_encode($arr);